package com.pi2e.view.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import butterknife.Bind;
import butterknife.ButterKnife;

import com.pi2e.R;
import com.pi2e.view.base.BaseActivity;
import com.pi2e.view.common.FootView;
import com.pi2e.view.common.HeaderView;
import com.pi2e.view.widget.MySlipSwitch;
import com.pi2e.view.widget.SwitchView;

/**  
* @ClassName: NetSetActivity  
* @Description: TODO(网络设置界面)  
* @author luotao  
* @date 2016年9月29日 上午9:33:54  
*
 */
public class NetSetActivity extends BaseActivity {
	
	@Bind(R.id.footId)
	View mfootView ;
	MySlipSwitch slipswitch_MSL ;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	}

	@Override
	public HeaderView initHeaderView() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setContentView() {
		setContentView(R.layout.activity_netset) ;
		ButterKnife.bind(this);
	}

	@Override
	public void initView() {
		/*slipswitch_MSL = (MySlipSwitch) findViewById(R.id.sv_netswitch);
		slipswitch_MSL.setImageResource(R.drawable.icon_netset_switch_bg_btn_on,
				R.drawable.icon_netset_switch_bg_btn_off, R.drawable.icon_netset_swith_btn_on_ersi);
		slipswitch_MSL.setSwitchState(true);
		slipswitch_MSL.updateSwitchState(true) ;*/

	}

	@Override
	public void initFootView() {
		
		FootView footView = new FootView(NetSetActivity.this, mfootView) ;
		footView.getBtn_ok().setText("返 回");
		footView.getBtn_ok().setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				
				finish();
			}
		});

	}

}
